import React from 'react';
import { ts2Formatter, renderState,renderEnable } from 'utils';
{/*
可配置化种类：

1、表格头部字段 
    1、列表页表格头部字段集合 mainTableColumn
    2、编辑页表格头部字段集合 childTableColumn

2、编辑框的字段
    1、编辑页 直接显示在页面的编辑字段 FormField
    2、编辑页 需要点击表格的增行弹框编辑的字段 FormTableField
    3. 列表页查询区域  searchField

3.表头部的按钮  headerButtonSets

4.表行尾部按钮  columnButtonSets
*/}

//表头信息

//字段属性

//基本信息

const FormDataHeader = [{
    enname: "organizationId",
    showname: "organizationName",
    codename: "organizationCode",
    zhname: "隶属组织",
    multiple: false,
    type: "RefComponent",
    cascadeName: [{
        paramkey: "EQ_inventoryOrg.id",
        childtype: "DataHeader",
        refKey: "refpk",
        dtoKey: "organizationId",
        offers: "warehouseId",
        resetOffersFlag: true,
    },{
        paramkey: "EQ_organization.id",
        childtype: "DataHeader",
        refKey: "refpk",
        dtoKey: "organizationId",
        offers: "regionId",
        resetOffersFlag: true,
    },{
        paramkey: "EQ_organization.id",
        childtype: "DataHeader",
        refKey: "refpk",
        dtoKey: "organizationId",
        offers: "shippingareaId",
        resetOffersFlag: true,
    },{
        paramkey: "EQ_organization.id",
        childtype: "DataHeader",
        refKey: "refpk",
        dtoKey: "organizationId",
        offers: "retailId",
        resetOffersFlag: true,
    },{
        paramkey: "EQ_organization.id",
        childtype: "DataHeader",
        refKey: "refpk",
        dtoKey: "organizationId",
        offers: "salesDeptId",  //部门
        resetOffersFlag: true,
    }],
    cascadeChildTable:[{
        refKey: "refpk", 
        dtoKey: "organizationId",
        childType:"terminalBases"  //terminalBases terminalSuppliers terminalPersons
    },{
        refKey: "refpk", 
        dtoKey: "organizationId",
        childType:"terminalSuppliers"
    },{
        refKey: "refpk", 
        dtoKey: "organizationId",
        childType:"terminalPersons"
    },{
        refKey: "refname", 
        dtoKey: "organizationName",
        childType:"terminalBases"
    },{
        refKey: "refname", 
        dtoKey: "organizationName",
        childType:"terminalSuppliers"
    },{
        refKey: "refname", 
        dtoKey: "organizationName",
        childType:"terminalPersons"
    },{
        refKey: "refcode", 
        dtoKey: "organizationCode",
        childType:"terminalBases"
    },{
        refKey: "refcode", 
        dtoKey: "organizationCode",
        childType:"terminalSuppliers"
    },{
        refKey: "refcode", 
        dtoKey: "organizationCode",
        childType:"terminalPersons"
    },{
        refKey: "contictsPersonId", 
        dtoKey: "contictsPersonId",
        childType:"terminalBases"
    },{
        refKey: "contictsPersonName", 
        dtoKey: "contictsPersonName",
        childType:"terminalBases"
    },{
        refKey: "contictsPersonCode", 
        dtoKey: "contictsPersonCode",
        childType:"terminalBases"
    }],
    refname: "organization",
    edit: true,
    required: true,
},
{
    enname: "salesDeptId",
    codename: "salesDeptCode",
    showname: "salesDeptName",
    alias:"organizationId",
    zhname: "部门",
    refname: "departmentRef",
    type: "RefComponent",
    edit: true,
    required: false,
},
{
    enname: "terminalStoreTypeId",
    codename: "terminalStoreTypeCode",
    showname: "terminalStoreTypeName",
    // alias:"organizationId",
    zhname: "门店终端类型",
    refname: "departmentRef",
    type: "RefComponent",
    edit: true,
    required: false,
},
{
    enname: "marketLevelId",
    codename: "marketLevelCode",
    showname: "marketLevelName",
    zhname: "市场层面",
    code: "SCM",
    type: "Select",
    edit: true,
    required: false,
},
{
    enname: "warehouseId",
    codename: "warehouseCode",
    showname: "warehouseName",
    zhname: "所属仓库",
    alias:"organizationId",
    param:{ EQ_ext07:"Y" },
    refname: "warehouseRefRadio",
    type: "RefComponent",
    edit: true,
    required: false,
},
{
    enname: "peopleAttributeId",
    codename: "peopleAttributeCode",
    showname: "peopleAttributeName",
    zhname: "人员属性",
    refname: "persontypes",
    type: "RefComponent",
    edit: true,
    required: true,
},
{
    enname: "code",
    zhname: "门店编码",
    type: "FormControl",
    pattern:/^\S*$/,
    message: "不能有空格",
    edit: true,
},
{
    enname: "name",
    zhname: "门店名称",
    type: "FormControl",
    edit: true,
    pattern:/^\S*$/,
    message:"不能有空格",
    required: true,
},
// {
//     enname: "parentId",
//     codename: "parentCode",
//     showname: "parentName",
//     zhname: "连锁上级名称",
//     type: "RefComponent",
//     refname:"terminalParentRef",
//     edit: true,
// },
{
    enname: "facadeShort",
    zhname: "门店简称",
    type: "FormControl",
    pattern:/^\S*$/,
    message:"不能有空格",
    edit: true,
},
{
    enname: "socioCreditCode",
    zhname: "社会信用代码",
    type: "FormControl",
    pattern:/^\S*$/,
    message: "不能有空格",
    edit: true,
},
{
    enname: "businessName",
    zhname: "工商注册名称",
    type: "FormControl",
    pattern:/^\S*$/,
    message: "不能有空格",
    edit: true,
},
{
    enname: "riscode",
    zhname: "RIS门店编码",
    type: "FormControl",
    pattern:/^\S*$/,
    message: "不能有空格",
    edit: true,
},
{
    enname: "facadeCategoryId",
    codename: "facadeCategoryCode",
    showname: "facadeCategoryName",
    zhname: "门店类别",
    precision: 2,
    code:"MD002",
    type: "Select",
    edit: true,
},
{
    enname: "canalTypeId",
    codename: "canalTypeCode",
    showname: "canalTypeName",
    zhname: "终端渠道类型",
    precision: 2,
    refname:"terminalCustRef",
    type: "RefComponent",
    edit: true,
    required:true,
},
{
    enname: "regionId",
    codename: "regionCode",
    showname: "regionName",
    zhname: "市场区域",
    refname:"marketareas",
    type: "RefComponent",
    alias:"organizationId",
    edit: true,
    required:true,
},
{
    enname: "shippingareaId",
    codename: "shippingareaCode",
    showname: "shippingareaName",
    zhname: "发运片区",
    refname:"departmentRef",
    type: "RefComponent",
    alias:"organizationId",
    edit: true,
    required:true,
},
{
    enname: "retailId",
    codename: "retailCode",
    showname: "retailName",
    zhname: "零售片区",
    refname:"departmentRef",
    type: "RefComponent",
    alias:"organizationId",
    edit: true,
    required:true,
},
{
    enname: "address",
    zhname: "详细地址",
    type: "FormControl",
    pattern:/^\S*$/,
    message: "不能有空格",
    required: false,
    edit: true,
},
{
    enname: "cannumber",
    zhname: "可出样数",
    type: "InputNumber",
    edit: true,
},
{
    enname: "samplingFate",
    zhname: "出样数",
    type: "InputNumber",
    edit: true,
},
{
    enname: "openingDate",
    zhname: "开业日期",
    type: "DatePicker",
    format:"YYYY-MM-DD",
    required: false,
    edit: true,
},
{
    enname: "mail",
    zhname: "邮箱",
    type: "FormControl",
    pattern:/^\S*$/,
    message: "不能有空格",
    required: false,
    edit: true,
},
{
    enname: "mailSite",
    zhname: "邮寄地址",
    type: "FormControl",
    pattern:/^\S*$/,
    message: "不能有空格",
    required: false,
    edit: true,
},
// {
//     enname: "stop_dr",
//     zhname: "启用标志",
//     type: "Radio",
//     hidepage:{0:true},
//     options: [{
//         "key": 1,
//         "value": "是"
//     }, {
//         "key": 0,
//         "value": "否"
//     }],
//     edit: false,
// },
{
    enname: "countryId",
    codename: "countryCode",
    showname: "countryName",
    zhname: "国别",
    refname:"countryRef",
    type: "RefComponents",
    edit: true,
},,
{
    enname: "provinceId",
    codename: "provinceCode",
    showname: "provinceName",
    zhname: "省份",
    type: "RefComponent",
    refname: "areaRef",
    param: {
        EQ_areaLevel: "1",
    },
    cascadeName: {
        paramkey: "EQ_parent.id",
        childtype: "DataHeader",
        refKey: "refpk",
        dtoKey: "provinceId",
        offers: "cityId",
        resetOffersFlag: true,
    },
    edit: true,
    required: true,
},
{
    enname: "cityId",
    codename: "cityCode",
    showname: "cityName",
    zhname: "市",
    refname: "areaRef",
    type: "RefComponent",
    edit: true,
    cascadeName: {
        paramkey: "EQ_parent.id",
        childtype: "DataHeader",
        refKey: "refpk",
        dtoKey: "cityId",
        offers: "countyId",
        resetOffersFlag: true,
    },
    param: {
        EQ_areaLevel: "2",
    },
    alias: "provinceId",
    required:true,
},
{
    enname: "countyId",
    codename: "countyCode",
    showname: "countyName",
    zhname: "区/县",
    refname: "areaRef",
    type: "RefComponent",
    edit: true,
    param: {
        EQ_areaLevel: "3",
    },
    cascadeName: {
        paramkey: "EQ_parent.id",
        childtype: "DataHeader",
        refKey: "refpk",
        dtoKey: "countyId",
        offers: "townId",
        resetOffersFlag: true,
    },
    alias: "cityId",
    edit: true,
    required: true,
},
{
    enname: "townId",
    codename: "townCode",
    showname: "townName",
    zhname: "镇/街道",
    refname: "areaRef",
    type: "RefComponent",
    param: {
        EQ_areaLevel: "4",
    },
    alias: "countyId",
    edit: true,
    // required: true,
},
{
    enname: "protoright",
    zhname: "样机产权",
    type: "Radio",
    options: [{
        "key": 1,
        "value": "是"
    }, {
        "key": 0,
        "value": "否"
    }],
    edit: true,
},,
{
    enname: "stradeAreaId",
    codename: "stradeAreaCode",
    showname: "stradeAreaName",
    zhname: "所属商圈",
    type: "Select",
    code:"SQ001",
    edit: true,
},
{
    enname: "prototypeId",
    codename: "prototypeCode",
    showname: "prototypeName",
    zhname: "样机属性",
    type: "Select",
    code:"YJ001",
    edit: true,
},
{
    enname: "Reportingwarehouse",
    zhname: "上报仓库",
    type: "FormControl",
    pattern:/^\S*$/,
    message: "不能有空格",
    required: false,
    edit: true,
},
{
    enname: "storecode",
    zhname: "客户系统门店编码",
    type: "FormControl",
    pattern:/^\S*$/,
    message: "不能有空格",
    required: false,
    edit: true,
},
{
    enname: "storename",
    zhname: "客户系统门店名称",
    type: "FormControl",
    pattern:/^\S*$/,
    message: "不能有空格",
    required: false,
    edit: true,
},
{
    enname: "checkdr",
    zhname: "盘点标识",
    type: "Radio",
    options: [{
        "key": 1,
        "value": "是"
    }, {
        "key": 0,
        "value": "否"
    }],
    edit: true,
},
{
    enname: "countersFate",
    zhname: "站柜人员",
    type: "InputNumber",
    required: false,
    edit: true,
},
{
    enname: "blameserviceId",
    codename: "blameserviceCode",
    showname: "blameserviceName",
    zhname: "门店责任业务",
    type: "RefComponents",
    refname:"terminalPersonRef",
    required: false,
    edit: true,
},
// {
//     enname: "isEnable",
//     zhname: "是否启用",
//     type: "Radio",
//     options: [{
//         key:2,
//         value:"停用"
//     },{
//         key:1,
//         value:"启用"
//     }],
//     showcontrol:[{
//         value: 2,
//         refKey: "value",
//         dtoKey: "isEnable",
//         layer: ["FormField", "DataHeader", "Field"],
//         fields: ["stopUser","stopTime", "stopCause"]
//     }],
//     hidepage: { 0: true },
//     edit: false,
// },
// {
//     enname: "stopUser",
//     zhname: "停用人",
//     type: "FormControl",
//     required: false,
//     hidepage: { 0: true },
//     edit: false,
// },
// {
//     enname: "stopTime",
//     zhname: "停用时间",
//     type: "DatePicker",
//     required: false,
//     hidepage: { 0: true },
//     edit: false,
// },
// {
//     enname: "stopCause",
//     zhname: "停用原因",
//     type: "FormControl",
//     required: false,
//     componentClass: "textarea",
//     pattern: /^[\w\W]{0,200}$/,
//     hidepage: { 0: true },
//     edit: false,
// },
]


const columaterminalBases = [
    // {
    //     title: "隶属组织",
    //     dataIndex: "organizationName",
    //     key: "organizationId",
    //     renderType: "refcomponent",
    //     detailwidth: 180,
    //     filedProps: {
    //         title: "隶属组织",
    //         refName: "organization",
    //         fieldName: "organizationName",
    //         reffields: { refpk: "organizationId", refname: "organizationName", refcode: "organizationCode" }
    //     },
    // },
    {
        title: "终端类型",
        dataIndex: "seniorTerminalTypeName",
        key: "seniorTerminalTypeId",
        renderType: "refcomponent",
        filedProps: {
            title: "终端类型",
            refName: "terminalTypeRef",
            fieldName: "goodsCategoryName",
            reffields: { refpk: "seniorTerminalTypeId", refname: "seniorTerminalTypeName", refcode: "seniorTerminalTypeCode" }
        },
    },
    {
        title: "终端等级",
        dataIndex: "terminalGradeName",
        key: "terminalGradeId",
        renderType: "refcomponent",
        filedProps: {
            title: "终端等级",
            refName: "terminalGradeRef",
            fieldName: "goodsCategoryName",
            reffields: { refpk: "terminalGradeId", refname: "terminalGradeName", refcode: "terminalGradeCode" }
        },
    },
    {
        title: "终端联系人",
        dataIndex: "contictsPersonName",
        key: "contictsPersonId",
        renderType: "refcomponent",
        filedProps: {
            title: "终端联系人",
            refName: "terminalPersonRef",
            aliasparam: [{
                paramkey: "EQ_personPosts.organization.id",
                alias: "organizationId",
            }],
            fieldName: "contictsPersonName",
            reffields: { refpk: "contictsPersonId", refname: "contictsPersonName", refcode: "contictsPersonCode" }
        },
    },
    {
        title: "联系电话",
        dataIndex: "contictsPhone",
        key: "contictsPhone",
        renderType: "input",
        pattern: /^[0-9]{11}$/,
        patternMessage:"11位的数字",
        filedProps: {
            maxLenght: 20,
        },
        required: false,
    },
    // {
    //     title: "是否启用",
    //     dataIndex: "isEnable",
    //     key: "isEnable",
    //     // renderType: 'selectradio',
    //     hidepage:{0:true},
    //     render: (text, record, index) => {
    //         return renderEnable(text);
    //     },
    //     filedProps: {
    //         reffields: { refpk: "isEnable" },
    //         defaultValue: 0,
    //         options: [
    //             {
    //                 name: '是', code: 1
    //             },
    //             {
    //                 name: '否', code: 0
    //             },
    //         ]
    //     }
    // },
    // {
    //     title: "停用日期",
    //     dataIndex: "enableTime",
    //     key: "enableTime",
    //     renderType: 'datepicker',
    //     render: (text, record, index) => {
    //         return text && ts2Formatter(text);
    //     },
    //     filedProps: {
    //         format:"YYYY-MM-DD",
    //     }
    // },
    {
        title: "备注",
        dataIndex: "remark",
        key: "remark",
        renderType: "input",
        edit: true,
        pattern:/^\S*$/,
        patternMessage: "不能有空格",
        filedProps: {
            maxLenght: 20,
        },
        required: false,
    },

]

const colummeterminalMarkets = [
    {
        title: "市场区域",
        dataIndex: "cityMarketName",
        key: "cityMarketId",
        renderType: "refcomponent",
        width: 250,
        disabled: true,
        validate: false,
        required: true,
        filedProps: {
            title: "市场区域",
            refName: "marketareas",
            fieldName: "cityMarketName",
            reffields: { refpk: "cityMarketId", refname: "cityMarketName", refcode: "cityMarketCode" }
        },
    },
]

const colummeterminalSuppliers = [
    // {
    //     title: "隶属组织",
    //     dataIndex: "organizationName",
    //     key: "organizationId",
    //     detailwidth: 180,
    //     renderType: "refcomponent",
    //     filedProps: {
    //         title: "隶属组织",
    //         refName: "organization",
    //         fieldName: "organizationName",
    //         reffields: { refpk: "organizationId", refname: "organizationName", refcode: "organizationCode" }
    //     },
    // },
    {
        title: "客户",
        dataIndex: "customerName",
        key: "customerId",
        renderType: "refcomponent",
        width: 250,
        required:true,
        validate:false,
        filedProps: {
            title: "客户",
            refName: "terminalcustomerRef",
            offersparam: {
                currentkey: ["businessId", "businessName", "businessCode","custChanTypeId","custChanTypeName","custChanTypeCode"],
                offerfields: ["blameserviceId", "blameserviceCode", "blameserviceName","canalCategoryId","canalCategoryName","canalCategoryCode"],
            },
            aliasparam: [{
                paramkey: "EQ_customerAreas.organization.id",
                alias: "organizationId",
            }],
            fieldName: "customerName",
            reffields: { refpk: "customerId", refname: "customerName", refcode: "customerCode" }
        },
    },
    {
        title: "商品品牌",
        dataIndex: "brandName",
        key:"brandId",
        renderType: "refcomponent",
        width: 200,
        validate: false,
        filedProps: {
            childType: "",
            title: "商品品牌",
            refName: "brandref",
            fieldName: "brandName",
            reffields: { refpk: "brandId", refname: "brandName", refcode: "brandCode" }
        },
    },
    {
        title: "商品品类",
        dataIndex: "categoryName",
        key:"categoryId",
        renderType: "refcomponent",
        width: 200,
        validate: false,
        filedProps: {
            childType: "",
            title: "商品品类",
            refName: "terminalGoodsCate",
            fieldName: "categoryName",
            reffields: { refpk: "categoryId", refname: "categoryName", refcode: "categoryCode" }
        },
    },
    // },
    // {
    //     title: "品项",
    //     dataIndex: "goodsCategoryName",
    //     key: "goodsCategoryId",
    //     renderType: "refcomponent",
    //     width: 250,
    //     required:true,
    //     validate:false,
    //     filedProps: {
    //         title: "品项",
    //         refName: "goodsCategoryRef",
    //         fieldName: "goodsCategoryName",
    //         reffields: { refpk: "goodsCategoryId", refname: "goodsCategoryName", refcode: "goodsCategoryCode" }
    //     },
    // },
    {
        title: "是否默认",
        dataIndex: "sdefault",
        key: "sdefault",
        renderType: 'selectradio',
        required:true,
        validate:false,
        render: (text, record, index) => {
            if (text == 1) {
                return '是';
            } else {
                return '否';
            }
        },
        filedProps: {
            reffields: { refpk: "sdefault" },
            defaultValue: 0,
            options: [
                {
                    name: '是', code: 1
                },
                {
                    name: '否', code: 0
                },
            ]
        }
    },
    {
        title: "责任业务",
        dataIndex: "blameserviceName",
        key: "blameserviceId",
        // renderType: "refcomponent",
        width: 250,
        required:true,
        validate:false,
        filedProps: {
            title: "责任业务",
            refName: "terminalPersonRef",
            fieldName: "blameserviceName",
            reffields: { refpk: "blameserviceId", refname: "blameserviceName", refcode: "blameserviceCode" }
        },
    },
    {
        title: "客户渠道类型",
        dataIndex: "canalCategoryName",
        key: "canalCategoryId",
        // renderType: "refcomponent",
        width: 250,
        required:true,
        validate:false,
        filedProps: {
            title: "客户渠道类型",
            refName: "custchantype",
            fieldName: "canalCategoryName",
            reffields: { refpk: "canalCategoryId", refname: "canalCategoryName", refcode: "canalCategoryCode" }
        },
    },
]

const columnterminalPersons = [
    // {
    //     title: "隶属组织",
    //     dataIndex: "organizationName",
    //     key: "organizationId",
    //     detailwidth: 180,
    //     renderType: "refcomponent",
    //     filedProps: {
    //         title: "隶属组织",
    //         refName: "organization",
    //         fieldName: "organizationName",
    //         reffields: { refpk: "organizationId", refname: "organizationName", refcode: "organizationCode" }
    //     },
    // },
    {
        title: "人员",
        dataIndex: "personName",
        key: "personId",
        renderType: "refcomponent",
        width: 250,
        filedProps: {
            title: "人员",
            refName: "terminalPersonRef",
            fieldName: "personName",
            reffields: { refpk: "personId", refname: "personName", refcode: "personCode" }
        },
    },
    {
        title: "电话",
        dataIndex: "personPhone",
        key: "personPhone",
        renderType: "input",
        pattern: /^[0-9]{11}$/,
        patternMessage: "11位的数字",
        filedProps: {
            maxLenght: "20",
        },
    },
]
//表单字段

export const FormField = {
    "DataHeader": {
        "title": "基础信息",
        "Field": FormDataHeader
    },
}

//表格弹框表单字段
export const FormTableField = {
}

//渲染成字表表格的头
export const childTableColumn = {
    "terminalBases": {
        "title": "基本信息",
        "type": "grid",
        "column": columaterminalBases
    },
    // "terminalMarkets": {
    //     "title": "市场区域",
    //     "type": "grid",
    //     "column": colummeterminalMarkets
    // },
    "terminalSuppliers": {
        "title": "供货商",
        "type": "grid",
        "column": colummeterminalSuppliers
    },
    "terminalPersons": {
        "title": "负责人员",
        "type": "grid",
        "column": columnterminalPersons
    },
}

//渲染成字表表格的头
export const mainTableColumn = [
    {
        title: "终端编码",
        dataIndex: "code",
        width:110,
        key: "code",
    },
    {
        title: "终端名称",
        dataIndex: "name",
        key: "name",
    },
    {
        title: "终端渠道类型名称",
        dataIndex: "canalTypeName",
        key: "canalTypeName",
    },
    {
        title: "审批状态",
        dataIndex: "state",
        key: "state",
        render:(text) => {
            return renderState(text);
        }
    }
]

export const searchField = [
    {
        enname: "code",
        zhname: "门店编码",
        searchType:"like",
        type: "FormControl",
        edit: true,
    },
    {
        enname: "name",
        zhname: "门店名称",
        type: "FormControl",
        searchType:"like",
        edit: true,
        required: false,
    },
    {
        enname: "provinceId",
        codename: "provinceCode",
        showname: "provinceName",
        zhname: "省份",
        type: "RefComponent",
        refname: "areaRef",
        param: {
            EQ_areaLevel: "1",
        },
        cascadeName: {
            paramkey: "EQ_parent.id",
            childtype: "DataHeader",
            refKey: "refpk",
            dtoKey: "provinceId",
            offers: "cityId",
            resetOffersFlag: true,
        },
        edit: true,
        // required: true,
    },
    {
        enname: "cityId",
        codename: "cityCode",
        showname: "cityName",
        zhname: "市",
        refname: "areaRef",
        type: "RefComponent",
        edit: true,
        cascadeName: {
            paramkey: "EQ_parent.id",
            childtype: "DataHeader",
            refKey: "refpk",
            dtoKey: "cityId",
            offers: "countyId",
            resetOffersFlag: true,
        },
        param: {
            EQ_areaLevel: "2",
        },
        alias: "provinceId",
    },
    {
        enname: "organizationId",
        showname: "organizationName",
        codename: "organizationCode",
        zhname: "隶属组织",
        multiple: true,
        type: "RefComponent",
        refname: "organization",
        edit: true,
    },
    {
        enname: "canalTypeId",
        codename: "canalTypeCode",
        showname: "canalTypeName",
        zhname: "门店分类",
        refname:"terminalCustRef",
        type: "RefComponent",
        edit: true,
    },{
        enname: "regionId",
        codename: "regionCode",
        showname: "regionName",
        zhname: "片区",
        refname:"marketareas",
        type: "RefComponent",
        edit: true,
    },
]

export const headerButtonSets = [
    {
        event: "ButtonAdd",
        zhname: "新增",
        color: 'primary',
        authcode: "TerminalApplyadd",
    },
    // {
    //     event: "ButtonEnable",
    //     zhname: "启用",
    //     authcode: "9901-05-02-01",
    //     method: "post",
    //     batch: true,
    //     ContentType: 'application/x-www-form-urlencoded;charset=utf-8',
    //     url: 'occ-base/base/terminal-applys/enable-cascade'
    // }
    // {
    //     event: "ButtonEnable",
    //     zhname: "停用",
    //     authcode: "9901-05-02-01",
    //     method: "post",
    //     batch: true,
    //     ContentType: 'application/x-www-form-urlencoded;charset=utf-8',
    //     url: 'occ-base/base/terminal-applys//batch-disable'
    // }
]

export const columnButtonSets = {
    "delete": {
        event: "ButtonDel",
        zhname: "删除",
        batch: true,
        method: "post",
        ContentType: 'application/x-www-form-urlencoded;charset=utf-8',
        url: 'occ-base/base/terminal-applys/deleteout'
    },
    "edit": true,
    "detail": true
}

// export default {mainTableColumn,searchField,headerButtonSets,
//     columnButtonSets,childTableColumn,FormTableField,FormField}
export const SelectCode = ["SQ001","SCM","MD002","YJ001"]
